import { RouteRecordRaw } from 'vue-router'

// 直接加载的模板
import CommLayout from '@/layout/index.vue'

//公共路由
import commonRoutes from '../common'
import algorithmCenterRoutes from './algorithm-center'
import classSquareRoutes from './class-square'
import dataSetRoutes from './data-set'
import hitContestRoutes from './hit-contest'
import itemCaseRoutes from './item-case'
import modelBaseRoutes from './model-base'
import personalCenterRoutes from './personal-center'

export const route: RouteRecordRaw = {
  path: '/customer',
  component: CommLayout,
  redirect: '/class-square/list',
  children: [
    ...modelBaseRoutes,
    ...dataSetRoutes,
    ...classSquareRoutes,
    ...itemCaseRoutes,
    ...hitContestRoutes,
    ...personalCenterRoutes,
    ...algorithmCenterRoutes,
    ...commonRoutes
  ]
}

export default route
